package com.llb666.shop.order.infrastructure.conver;

import com.llb666.shop.order.domain.entity.OrderStatus;
import com.llb666.shop.order.infrastructure.po.OrderStatusPo;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 订单状态转换器.
 *
 * @author llb666
 */
@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface OrderStatusCvt {
    OrderStatusCvt INSTANCE = Mappers.getMapper(OrderStatusCvt.class);

    OrderStatusPo do2po(OrderStatus orderStatus);

    OrderStatus po2do(OrderStatusPo orderStatusPo);

    List<OrderStatus> po2doList(List<OrderStatusPo> orderStatusPos);

}
